<?php

class Default_IndexController extends Zend_Controller_Action
{

    public function init()
    {
        
    }

    public function indexAction()
    {
        $this->view->progress = 0;
		$range = array(1,1000000);
		$numbersObject = Doctrine_Core::getTable('Default_Model_Numbers');
		$numbers = array('ranges' => null );
		$range_top = 1000000;
		for($i=1; $i<51; $i++){
			$range_bot = $range_top - 20000;
			$numbers['ranges'][] = array('range_bot'=>$range_bot,'range_top'=>$range_top, 'count'=>$numbersObject->getRangeInfo($range_bot, $range_top));
			$range_top -= 20000;
		}
		$this->view->numbers = $numbers;

    }


}

